package com.example.order.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
//从nacos配置中心，自动装配配置项，前缀徐娅与nacos中写的一致，属性名转化为驼峰写法并匹配后缀
@ConfigurationProperties(prefix = "order")
@Data
public class OrderProperties {


    String timeout;

    String orderAutoConfirm;

    //setter，getter
    public String getTimeout() {
        return timeout;
    }
    public void setTimeout(String timeout) {
        this.timeout = timeout;
    }
    public String getOrderAutoConfirm() {
        return orderAutoConfirm;
    }
    public void setOrderAutoConfirm(String orderAutoConfirm) {
        this.orderAutoConfirm = orderAutoConfirm;
    }



}
